import os
import sqlite3
from util.utils import get_logger

DB_PATH = "c:\\yesmywine"
db_name = os.path.join(DB_PATH, 'yesmywine.db')
if not os.path.exists(db_name):
    os.mkdir(DB_PATH)
    with open(db_name, 'w') as f:
        pass
    INIT = True
else:
    INIT = False
db_name = os.path.join(DB_PATH, 'yesmywine.db')
con = sqlite3.connect(db_name)
cursor = con.cursor()
api_logger = get_logger('api')
